﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class LoopScaleRectItem : LoopScaleRectItemBase
{
	public class Content
	{
		public int ID;
	}

	public Text m_Text;

	private void Init(Content content)
	{
		m_Text.text = content.ID.ToString();
	}

	public void ScrollCellIndex(int index)
	{
		Debug.LogError(index);
		string name = "Cell" + index.ToString();
		gameObject.name = name;
		Init(LoopScaleRectDemo.Instance.items[index]);
	}
}
